package com.qfedu.index.tolist.service.service.impl;

import com.qfedu.entity.Special;
import com.qfedu.index.tolist.service.dao.SpecialDAO;
import com.qfedu.index.tolist.service.service.SpecialService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SpecialServiceImpl implements SpecialService {
    @Resource
    private SpecialDAO specialDAO;

    @Override
    public List<Special> getAllSpecial() {
        List<Special> allSpecial = specialDAO.getAllSpecial();
        return allSpecial;
    }

    @Override
    public Special getSpecialById(Integer specialId) {
        Special special = specialDAO.getSpecialById(specialId);
        return special;
    }
}
